<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MainView
 *
 * @author mateusz.ledzewicz
 */
class ViewNetwork_prepared extends NetworkScreen{
    //put your code here
        
    public function load() {
        parent::load();
        $this->chooseView('network_prepared');
        
    }
    
    protected function listLoad() {
        $list = '
            <tr>
                <td>'.$this->getVar('header_Network_prepared_LABEL_file').'</td>
                <td>'.$this->getVar('header_Network_prepared_LABEL_name').'</td>
                <td>'.$this->getVar('header_Network_prepared_LABEL_information').'</td>
                <td>Edycja</td>
            </tr>';
        
        foreach($this->specialVariables['list'] as $r)
        {
            $list .= '
            <tr>
                <td>'.$r->file.'</td>
                <td>'.$r->name.'</td>
                <td>'.$r->information.'</td>
                <td>
                    <a href="?step=network_teached&action=edit&parent='.$r->id_network_prepared.'"><span class="glyphicon glyphicon-briefcase" aria-hidden="true"></span></a>
                </td>
            </tr>';     

         }
         
         
        $this->setVar('addNewLink', '');
        $this->setVar('type', 'przygotowane do nauki');
        $this->setVar('list', $list);
    }
  
}

?>
